package com.ecnu.system.mapper;

import com.ecnu.system.domain.ProjectFileLabels;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ecnu.system.domain.dto.FileLabelDTO;
import com.ecnu.system.domain.dto.FileLabelsDTO;
import com.ecnu.system.domain.vo.FileLabelVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 * ecnu_活动_资料标签表 Mapper 接口
 * </p>
 *
 * @author zdn
 * @since 2025-03-23
 */
@Mapper
public interface ProjectFileLabelsMapper extends BaseMapper<ProjectFileLabels> {

    List<FileLabelVO> labelsList(@Param("fileList") List<String> fileList);

    Boolean deleteByFileId(String fileId);

    Boolean insertByFileId(@Param("dtos") List<FileLabelsDTO> fileLabels, @Param("fileId") String fileId);
}
